package com.zyf.recruit.controller;

import com.zyf.recruit.service.impl.EnterpriseServiceImpl;
import entity.Result;
import entity.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EnterpriseController {
    @Autowired
    EnterpriseServiceImpl enterpriseService;
    /**
     * 查询热门企业ishot为1
     * @return
     */
    @RequestMapping(value="/search/hotlist",method= RequestMethod.GET)
    public Result hotlist(){
        return new Result(true, StatusCode.OK, "查询成功", enterpriseService.getIsHot("1"));
    }

}
